package com.linkhub.oms.admin.modules.order.domain.param.ordersplit;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: PackageSkuParam
 * @Author: echo
 * @Date: 2024/4/7 10:59
 * @Version: 1.0
 */
@Data
public class PackageSkuParam implements Serializable {

    @NotBlank(message = "{validation.order.localSkuId.notBlank}")
    private String localSkuId;

    @NotNull(message = "{validation.order.currentQuantity.notNull}")
    @Range(min = 1, message = "{validation.order.currentQuantity.range}")
    private Integer count;
}
